package dormouse.vfs.ui.actions;

import java.util.List;

import org.apache.commons.vfs2.FileObject;
import org.jdesktop.application.Application;
import org.jdesktop.application.Task;

import dormouse.vfs.task.IFileTask;

/**
 * This class provides a template for new file tasks.
 */
public abstract class AbstractFileTask extends Task implements IFileTask {

	/** The file that the task will operate on. */
	protected FileObject file = null;
	
	/** The list of files that the task will operate on. */
	protected List<FileObject> fileList = null;

	/**
	 * Constructor
	 * 
	 * @param application
	 *            the root application object.
	 */
	public AbstractFileTask(Application application) {
		super(application);
	}

	@Override
	public void setFile(FileObject file) {
		this.file = file;
	}

	@Override
	public void setFileList(List<FileObject> files) {
		this.fileList = files;
	}
	
	@Override
	public String[] getFileExtensions() {
		return null;
	}

}
